package com.yuanhua.sim.gateway.service;

import com.yuanhua.core.base.entity.MsgReqBO;
import com.yuanhua.sim.gateway.model.PathMsg;
import org.apache.zookeeper.KeeperException;

/**
 * @author yuanhua
 */
public interface GateWayService {
    /**
     * 消息发送业务处理
     * @param msg
     * @return
     */
    String sendMsg(MsgReqBO msg);

    /**
     * 算法挑选服务返回
     * @return
     */
    PathMsg getPath() throws KeeperException, InterruptedException;


    /**
     * 服务节点检测
     * @author songguoxiang
     * @date: 2022/8/15 11:28
     */
    void doReGetChildren() throws InterruptedException, KeeperException;

}
